package cn.zjgsu.mapping;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.zjgsu.domain.TbStudent;

public interface TbStudentMapper {

	long getCount();
//为什么在这里一定要加parm
	List<TbStudent> selectByPage(@Param(value="startPos") Integer startPos,@Param(value="pageSize") Integer pageSize);

	void insertSelective(TbStudent student);

	void deleteByPrimaryKey(long pkStudent);
	
	

	TbStudent selectByPrimaryKey(long pkStudent);

	void updateByPrimaryKeySelective(TbStudent student);
	
	
	
	
	List<TbStudent> searchByStudentNum(@Param(value="studentNum")String studentNum);
	
	
	List<TbStudent> searchByStudentName(@Param(value="studentName")String studentName);
	
	TbStudent selectByForeignKey(long fkUser);
	
	TbStudent selectByStudentNum(String studentNum);

}
